<?php
//已登录页面，显示登录用户名 

if(isset($_COOKIE['username'])){

echo 'Welcome, You are Logged as '.$_COOKIE['username'].'<br/>';
//点击“Log Out”，则转到logOut.php页面进行cookie的注销 

echo '<a href="logOut.php"> Log Out('.$_COOKIE['username'].')</a><br>';

echo '<a href="test.html">start a new post!</a>';
}
?>     

